<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<div region="center" style="padding:5px;" border="false">
	<table id="expressList">
		<thead>
			<tr>
				<th data-options="field:'expressId',width:50,hidden:true">ID</th>
				<th data-options="field:'company',width:100,formatter: function(value,row,index){
        			if(value){
						return value.companyName;
					}
					return '未知';
        		}">所属公司</th>
				<th data-options="field:'expressName',width:100">快递网点名称</th>
				<th data-options="field:'courier',width:100,formatter: function(value,row,index){
        			if(value){
						return value.mobileNum;
					}
					return '无';
        		}">负责人手机号码</th>
				<th data-options="field:'expressBalance',width:100">网点余额</th>
				<th data-options="field:'hotLine',width:100">客服电话</th>
			</tr>
		</thead>

		<%--<tbody>
			<s:iterator value="expressBranchs" status="st">
				<tr class="odd">
					<td class="center "><s:property value="expressId" /></td>
					<td class="center "><s:property value="company.companyName" /></td>
					<td class="center "><s:property value="expressName" /></td>
					<td class="center "><s:property value="courier.mobileNum" /></td>
					<td class="center "><s:property value="expressBalance"/></td>
					<td class="center ">
					<s:if test="payway==0">预充值</s:if>
					<s:elseif test="payway==1">后缴费</s:elseif>
					<s:elseif test="payway==2">免费</s:elseif>
					<s:else>=_=</s:else>
					</td>
					<td class="center "><s:property value="hotLine"/></td>
					<s:if test="#session.admin.name!='sdyouao'">
					<td class="center "> 
						<a href="express!getExpressDetail?expressId=<s:property value="expressId" />">
							详情
						</a>|
						<a href="getExpressById?expressId=<s:property value="expressId" />">
							修改
						</a>|
						<a href="deleteExpress?expressBranchID=<s:property value="expressId" />">
							删除
						</a>
						<s:if test="status==0">
							|<a class="changeStatus" href="express!changeStatus?status=1&expressBranchID=<s:property value="expressId" />">停用</a>
						</s:if>
						<s:if test="status==1">
							|<a class="changeStatus" href="express!changeStatus?status=0&expressBranchID=<s:property value="expressId" />">启用</a>
						</s:if>
					</td>
					</s:if>
					<s:else>
						<td class="center "> 
							<a href="express!getExpressDetail?expressId=<s:property value="expressId" />">
								详情
							</a>
						</td>
					</s:else>
				</tr>
			</s:iterator>
		</tbody>
	--%></table>
</div>
<!-- 增加 -->
<div id="express_addDialog"></div>
<!-- 修改 -->
<div id="express_updateDialog"></div>
<script type="text/javascript" src="<%=path%>/js/system/express/express.js"></script>